﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="compare2.aspx.cs" Inherits="pro_mis_weight_compare2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:HyperLink ID="HyperLink1" runat="server">返回<img alt="" src="../../../images/arrowRight.png" /></asp:HyperLink>
    
    </div>
    <div>
        重要性程度比：<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                
                 
            
                       
            
            
            SelectCommand="SELECT appindicatororder.indicatorid, appindicatororder.indicatororder, indicator.indicatorname, weight.weightvalue FROM appindicatororder INNER JOIN weight ON appindicatororder.indicatorid = weight.elementid INNER JOIN indicator ON appindicatororder.indicatorid = indicator.indicatorid WHERE (weight.elementtype = '指标') AND (appindicatororder.weightmissionid = @weightmissionid) AND (indicator.ruleid = @ruleid) AND (weight.weightmissionid = @weightmissionid) ORDER BY appindicatororder.indicatororder">
                <SelectParameters>
                    <asp:SessionParameter DefaultValue="" Name="weightmissionid" 
                        SessionField="currentweightmissionid" />
                    <asp:QueryStringParameter Name="ruleid" 
                        QueryStringField="ruleid" />
                </SelectParameters>
            </asp:SqlDataSource>
<asp:GridView ID="GridView1" runat="server" 
                AutoGenerateColumns="False" CellPadding="4" DataKeyNames="indicatorid" 
                DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" PageSize="5" 
                Width="100%">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                    <asp:TemplateField HeaderText="" InsertVisible="False" 
                        SortExpression="indicatorid">
                        <EditItemTemplate>
                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("indicatorid") %>' Visible="false"></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("indicatorid") %>' 
                                Visible="false"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="5px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="指标序号" SortExpression="indicatororder">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("indicatororder") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("indicatororder") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="指标名称" SortExpression="indicatorname">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("indicatorname") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("indicatorname") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="weightvalue" HeaderText="当前权值" 
                        SortExpression="weightvalue">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField SortExpression="indicatorname" 
                        ItemStyle-HorizontalAlign="Right">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("indicatorname") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("indicatorname") %>'></asp:Label>
                        </ItemTemplate>

<ItemStyle HorizontalAlign="Right"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="排序" ItemStyle-Width="120px">
                        <ItemTemplate>
                        
    <asp:DropDownList ID="DropDownList1" runat="server">
        <asp:ListItem Value="1.0">同样重要</asp:ListItem>
        <asp:ListItem Value="1.2">稍微重要</asp:ListItem>
        <asp:ListItem Value="1.4">明显重要</asp:ListItem>
        <asp:ListItem Value="1.6">强烈重要</asp:ListItem>
        <asp:ListItem Value="1.8">极端重要</asp:ListItem>
    </asp:DropDownList>
                        </ItemTemplate>

<ItemStyle Width="120px"></ItemStyle>
                    </asp:TemplateField>
                </Columns>
                <PagerStyle ForeColor="#003399" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
                   
            <div style="text-align: center; float:left; width:100%;">
                <asp:ImageButton ID="ImageButton1" runat="server" 
                    ImageUrl="~/images/submit.gif" onclick="ImageButton1_Click" />
                
            </div>
    </div>
    </form>
</body>
</html>
